package com.example.logining.domain.pojo;

/**
 * @title: SysRole
 * @author: wywang
 * @date: 2024/11/17
 * @description:
 **/
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Set;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysRole {
    private Long id;
    private String roleName;
    private String description;
    private Date createTime;
    private Date updateTime;
    private Set<SysUser> users; // MyBatis通常会使用ResultMap来处理这种关系
    private Set<SysPermission> permissions; // MyBatis通常会使用ResultMap来处理这种关系

}